#line 1 "C:/Users/John Titor/Desktop/PSM/Coding dsPIC30F4011/Button test/button.c"
#line 23 "C:/Users/John Titor/Desktop/PSM/Coding dsPIC30F4011/Button test/button.c"
unsigned int oldstate;

void main() {
 ADPCFG = 0xFFFF;
 TRISD = 0xFFFF;
 TRISB = 0x0000;

 do {
 if(PORTD)
 {LATB=~LATB;
 delay_ms(200);}







 } while(1);
}
